<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:insert="~{include :: header('专业修改')}" />
</head>
<body class="hold-transition">
<div class="container-fluid mt-2 mb-2">
    <form class="form-horizontal m" id="form-subject-edit" th:object="${subject}">
        <input name="subjectId" th:field="*{subjectId}" type="hidden">
        <div class="form-group row" style="margin-top: 30px">
            <label class="col-sm-2 col-form-label is-required text-sm-right">专业名称</label>
            <div class="col-sm-6">
                <input name="subjectName" th:field="*{subjectName}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 col-form-label text-sm-right">排序</label>
            <div class="col-sm-4">
                <input name="sort" th:field="*{sort}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:insert="~{include :: footer}" />
<script type="text/javascript">
    $("#form-subject-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save("/subject/save.json", $('#form-subject-edit').serialize());
        }
    }
</script>
</body>
</html>